package com.vf.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vf.user.mapper.CreditHistoryMapper;
import com.vf.user.domain.CreditHistory;
import com.vf.user.service.ICreditHistoryService;

/**
 * 信用分变更记录Service业务层处理
 * 
 * @author LBS
 * @date 2025-06-04
 */
@Service
public class CreditHistoryServiceImpl implements ICreditHistoryService 
{
    @Autowired
    private CreditHistoryMapper creditHistoryMapper;

    /**
     * 查询信用分变更记录
     * 
     * @param historyId 信用分变更记录主键
     * @return 信用分变更记录
     */
    @Override
    public CreditHistory selectCreditHistoryByHistoryId(Long historyId)
    {
        return creditHistoryMapper.selectCreditHistoryByHistoryId(historyId);
    }

    /**
     * 查询信用分变更记录列表
     * 
     * @param creditHistory 信用分变更记录
     * @return 信用分变更记录
     */
    @Override
    public List<CreditHistory> selectCreditHistoryList(CreditHistory creditHistory)
    {
        return creditHistoryMapper.selectCreditHistoryList(creditHistory);
    }

    /**
     * 新增信用分变更记录
     * 
     * @param creditHistory 信用分变更记录
     * @return 结果
     */
    @Override
    public int insertCreditHistory(CreditHistory creditHistory)
    {
        return creditHistoryMapper.insertCreditHistory(creditHistory);
    }

    /**
     * 修改信用分变更记录
     * 
     * @param creditHistory 信用分变更记录
     * @return 结果
     */
    @Override
    public int updateCreditHistory(CreditHistory creditHistory)
    {
        return creditHistoryMapper.updateCreditHistory(creditHistory);
    }

    /**
     * 批量删除信用分变更记录
     * 
     * @param historyIds 需要删除的信用分变更记录主键
     * @return 结果
     */
    @Override
    public int deleteCreditHistoryByHistoryIds(Long[] historyIds)
    {
        return creditHistoryMapper.deleteCreditHistoryByHistoryIds(historyIds);
    }

    /**
     * 删除信用分变更记录信息
     * 
     * @param historyId 信用分变更记录主键
     * @return 结果
     */
    @Override
    public int deleteCreditHistoryByHistoryId(Long historyId)
    {
        return creditHistoryMapper.deleteCreditHistoryByHistoryId(historyId);
    }
}
